Fix error when splicing Eshell globs and a glob expands to itself
authorJim Porter <jporterbugs@gmail.com>
Tue, 22 Oct 2024 16:43:00 +0000 (09:43 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 22 Oct 2024 16:43:00 +0000 (09:43 -0700)
commitb7a375f5c49ac86399b9af7a6a74720ed294abd7
tree906a8584f8f2b71f487308721bdfcf16d65096c8
parent2289e162268b82d1d757c2354bf3fdf92316e91d
Fix error when splicing Eshell globs and a glob expands to itself

This could happen when 'eshell-extended-glob' determines that a "glob"
is not really a glob.  This mainly happens for remote file names with a
"~" in them, like "/ssh:remote:~/file.txt".

* lisp/eshell/em-glob.el (eshell-extended-glob): Return a list when
'eshell-glob-splice-results' is non-nil.
* test/lisp/eshell/em-glob-tests.el
(em-glob-test/expand/splice-results)
em-glob-test/expand/no-splice-results): Extend tests.
lisp/eshell/em-glob.el
test/lisp/eshell/em-glob-tests.el